package com.matace.keychain.domain;

import com.matace.keychain.data.MainPageRepositoryImpl;

public class MainPageUseCase {
    private final MainPageRepositoryImpl userRepository;

    public MainPageUseCase(MainPageRepositoryImpl userRepository) {
        this.userRepository = userRepository;
    }

    public String getNavigationMessage(int itemId) {
        return userRepository.getNavigationMessage(itemId);
    }

    public boolean handleNavigationItemSelected(int itemId) {
        return !userRepository.getNavigationMessage(itemId).isEmpty();
    }

} 